package com.it.you.entity.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

import java.util.Date;

@Data
@EqualsAndHashCode(callSuper = false)
@TableName("tb_log")
@NoArgsConstructor
@AllArgsConstructor
public class TbLog {

    @TableId(type = IdType.AUTO)
    private Integer id;

    @TableField
    private Long userId;

    @TableField
    private String userName;

    @TableField
    private String operation;

    @TableField
    private String method;

    @TableField
    private String params;

    @TableField
    private String ip;

    @TableField
    private Date createDate;

    @TableField
    private String operateResult;

    @TableField
    private String abnormality;

}
